import http from "../utils/http/service";

/**
 * 查询头部信息
 * @param {Object} data
 */
export const getPaymentTransfer = (data): Promise<any> => {
  return http.post(`/snow-admin/paymentTransfer/sectionStats`, data);
};

/**
 * 查询列表数据
 * @param {Object} data
 */
export const getDataList = (data): Promise<any> => {
  return http.post(`/snow-admin/paymentTransfer/findList`, data);
};

/**
 * 新增数据
 * @param {Object} data
 */
export const addData = (data): Promise<any> => {
  return http.post(`/snow-admin/paymentTransfer/add`, data);
};

/**
 * 更新数据
 * @param {Object} data
 */
export const updateData = (data): Promise<any> => {
  return http.post(`/snow-admin/paymentTransfer/update`, data);
};

/**
 * 删除数据
 * @param {Object} data
 */
export const deleteData = (id): Promise<any> => {
  return http.post(`/snow-admin/paymentTransfer/delete/${id}`);
};

/**
 * 导入
 * @param {Object} data
 */
export const importData = (data): Promise<any> => {
  return http.post(`/snow-admin/paymentTransfer/importBatch`, data);
};
